{% extends "base.html" %}
{% block title %}blog list{% endblock %}
{% block content %}
<div>
    {% for blog in blogs %}
        <h3>
            <a href="/blog/blogshow/{{ blog.id }}">{{ blog.caption }}</a>
            <a href="/blog/blogdel/{{ blog.id }}" title="delete">delete</a>
            <a href="/blog/blogupdate/{{ blog.id }}" title="edit">update</a>
        </h3>
        <div>{{ blog.content }}</div>
    {% endfor %}
</div>
<div>
    <a class="btn" href="/blog/blogadd">add new blog</a>
</div>
{% endblock %}